<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="org.test.once.model.*" %>
<%
	request.setCharacterEncoding("gb2312");

	User userupdate = (User)request.getAttribute("userupdate");
 %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加用户</title>
<script type="text/javascript">
function closewindow(){
	if(window.opener){
		window.opener.location.reload(true);
		window.close();
	}
}
</script>
</head>
<body>
<div align="center">
<P align="center">修改用户信息</P>
	<form action="UserServlet?command=updateUser" method="post">
	<hr>
		I&nbsp;&nbsp;D：<input type="text" name="id" id="id" value="<%=userupdate.getId()%>"/><br>
		姓名：<input type="text" name="username" id="userName" value="<%=userupdate.getUserName() %>" /><br>
		密码：<input type="password" name="password" id="password" value="<%=userupdate.getPassword()%>" /><br>
		帐号：<input type="text" name="account" id="account" value="<%=userupdate.getAccount()%>" /><br><hr>
		<input type="submit" value="提交" name="tj" id="tj" />&nbsp;&nbsp;&nbsp;&nbsp;
		<input type="button" value="关闭" name="goback" id="goback" onclick="closewindow();"> 
	</form>
</div>
</body>
</html>